<?php

require_once('db_connect.php');
$register_date = date('Y-m-d H:i:s');

echo $query = "INSERT INTO `practice`
(`name`,`email`,`password`,`register_date`,`status`) VALUES('hello world','amit@zend.com','admin','$register_date','0')";

mysql_query($query) or die(mysql_error());

$insertId = mysql_insert_id();
$rowsAffected = mysql_affected_rows();

echo "<br>\nRecord Inserted on ID $insertId ";
echo "<br>\n $rowsAffected Rows Affected ";
